class n. 1.阶级;社会等级。 2.学级;班级,年级,级,班;组;(有组织的)讲习班;〔美国〕同年毕业班;【军事】同年入伍士兵。 3.(高低、优劣的)等级;类别。 4.〔英大学〕(荣誉考试)优等;〔俚语〕高级,优秀;漂亮,优雅。 5.【生物学】(分类学的)纲;【矿物】晶族。 6.(一节)课。 the working class工人阶级。 No class today. 今天没课。 C- is over. 下课。 boycott classes 罢课。 the first [second] class头[二]等。 high [low] class高[低]级。 There's a good deal of class about him. 他有很多优点。 He is not class enough. 他没有什么了不起。 at the top of one's class 出类拔萃;居首要位置。 be no class 〔俚语〕不足道;无价值。 class of the field 〔美国〕比赛的优胜候补人。 get a class=obtain a class. in a class by itself 特好,出众。 in class在上课中。 in the same class 〔美国〕同一类型的,同等的。 no class 〔俚语〕等外的,极坏的,蹩脚的〔用作表语〕。 not in the same class with 不能同…相比,无法和…相提并论,比不上…。 obtain a class=take a class 毕业考试得优等。 take a class at (Oxford) 在(牛津大学)进荣誉班。 take a class of (beginners) 担任(初级)班(的教师)。 take classes in (history) 听(历史)课,选修(历史)课程。 the classes 上层社会;知识阶级。 the classes and masses 各阶级和各阶层。 vt. 把…分类,把…分等[分级];给…定等级,把…分组。 vi. 属于…类[等、级、组]。 adj. -able 可分类[等级]的。 adj. -less 无阶级的。
A typical kind of property that you might want to express, say, in a class invariant for a graph class, is that the graph has no cycles 比如在一个图类中,你可能想要表述的典型属性是该图没有回路。
It's typical that class invariants define properties that indicate how the various constituents of the class, such as balance and deposit / withdrawal lists, maintain consistency with each other 这个典型例子表明:类不变式定义属性,该属性指明类的可变要素(如余额和存储/支取清单)如何维护彼此一致性。
It \'s typical that class invariants \ r \ ndefine properties that indicate how the various constituents of the \ r \ nclass, such as balance and deposit / withdrawal lists, maintain \ r \ nconsistency with each other 这个典型例子表明:类不变式定义属性,该属性指明类的可变要素(如余额和存储/支取清单)如何维护彼此一致性。
For example, if you have a bank account class with a field that represents the current balance and a field that contains a list of all deposits and withdrawals since the opening of the account, then you would have a class invariant that states that the value of the balance field is equal to the total of all the deposit values so far minus the total of all the withdrawal values so far 例如,你有一个银行帐户类,它包含一个表示当前余额的字段和一个包含帐户自开通以来所有储蓄和支取清单的字段,那么你也应该有一个类不变式表明余额字段的值与累计储蓄和累计支取之差相一致。